package com.fand.manager.model.userrole;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fand.manager.model.role.SysRoleReturnDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户角色表
 * </p>
 *
 * @author javaboy
 * @since 2021-06-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysUserRoleReturnDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "所有角色")
    private List<ReturnDTO> roles;

    @ApiModelProperty(value = "用户拥有角色")
    private List<Long> userRoles;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ReturnDTO {
        @ApiModelProperty(value = "角色主键")
        private Long   value;
        @ApiModelProperty(value = "角色名称")
        private String title;
    }
}
